<template>
  <el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu > 0" :title="crud.status.title" width="700px">
    <el-form ref="form" :model="form" :rules="rules" size="small" label-width="120px">
      <el-form-item label="订单编号">
        <el-input v-model="form.orderSerial" />
      </el-form-item>
      <el-form-item label="开单时间">
        <el-input v-model="form.orderTime" />
      </el-form-item>
      <el-form-item label="结单时间">
        <el-input v-model="form.orderEndTime" />
      </el-form-item>
      <el-form-item label="使用时长">
        <el-input v-model="form.useLength" />
      </el-form-item>
      <el-form-item label="订单金额">
        <el-input v-model="form.orderAmount" />
      </el-form-item>
      <el-form-item label="订单支付金额">
        <el-input v-model="form.orderAmountPay" />
      </el-form-item>
      <el-form-item label="设备编号">
        <el-input v-model="form.deviceSerial" />
      </el-form-item>
      <el-form-item label="租户ID">
        <el-input v-model="form.rentUserId" />
      </el-form-item>
      <el-form-item label="医院ID">
        <el-input v-model="form.hospitalId" />
      </el-form-item>
      <el-form-item label="楼栋ID">
        <el-input v-model="form.buildingId" />
      </el-form-item>
      <el-form-item label="楼层ID">
        <el-input v-model="form.floorId" />
      </el-form-item>
      <el-form-item label="科室ID">
        <el-input v-model="form.departId" />
      </el-form-item>
      <el-form-item label="订单状态">
        <el-input v-model="form.orderStatus" />
      </el-form-item>
      <el-form-item label="支付状态">
        <el-input v-model="form.payStatus" />
      </el-form-item>
      <el-form-item label="订单备注">
        <el-input v-model="form.orderRemark" />
      </el-form-item>
      <el-form-item label="价格描述">
        <el-input v-model="form.priceDesc" />
      </el-form-item>
      <el-form-item label="租户名">
        <el-input v-model="form.rentUserName" />
      </el-form-item>
      <el-form-item label="用户手机号">
        <el-input v-model="form.userPhone" />
      </el-form-item>
      <el-form-item label="医院名称">
        <el-input v-model="form.hospitalName" />
      </el-form-item>
      <el-form-item label="楼栋名称">
        <el-input v-model="form.buildingName" />
      </el-form-item>
      <el-form-item label="楼层名称">
        <el-input v-model="form.floorName" />
      </el-form-item>
      <el-form-item label="科室名称">
        <el-input v-model="form.departName" />
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button type="text" @click="crud.cancelCU">取消</el-button>
      <el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
    </div>
  </el-dialog>
</template>

<script>
import { form } from '@crud/crud'

const defaultForm = { orderId: null, orderSerial: null, orderTime: null, orderEndTime: null, useLength: null, orderAmount: null, orderAmountPay: null, deviceSerial: null, rentUserId: null, hospitalId: null, buildingId: null, floorId: null, departId: null, orderStatus: null, payStatus: null, orderRemark: null, priceDesc: null, rentUserName: null, userPhone: null, hospitalName: null, buildingName: null, floorName: null, departName: null, sortNum: null, dataStatus: null, updateTime: null, createTime: null }
export default {
  mixins: [form(defaultForm)],
  props: {
    dict: {
      type: Object,
      required: true
    }
  },
  data() {
    return {
      rules: {
      }
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  /deep/ .el-input-number .el-input__inner {
    text-align: left;
  }
</style>
